|
| def | CreateContext (filter, sub_filter, encrypt_info) |
| | 用于创建加密和解密上下文的回调函数。 更多...
|
| |
| def | DecryptData (decryptor, encrypted_data, encrypted_data_len) |
| | 用于解密加密数据的回调函数。 更多...
|
| |
| def | EncryptData (context, obj_num, gen_num, src_data, src_data_len, out_dst_buffer, out_dst_buffer_len) |
| | 用于获取加密数据的回调函数。 更多...
|
| |
| def | FinishDecryptor (decryptor) |
| | 用于完成解密的回调函数。 更多...
|
| |
| def | GetCipher (context) |
| | 用于获取密码类型的回调函数。 更多...
|
| |
| def | GetDecryptedSize (context, src_data_size) |
| | 用于获取估计的解密数据大小的回调函数。 更多...
|
| |
| def | GetEncryptedSize (context, obj_num, gen_num, src_data, src_data_len) |
| | 用于获取估计的加密大小的回调函数。 更多...
|
| |
| def | GetEncryptKey (context) |
| | 用于获取加密密钥的回调函数。 更多...
|
| |
| def | GetSecurityType () |
| | 获取安全回调的加密类型。 更多...
|
| |
| def | GetUserPermissions (context, user_permission) |
| | 用于获取用户权限的回调函数。 更多...
|
| |
| def | IsOwner (context) |
| | 用于检查当前用户是否是PDF文档所有者的回调函数。 更多...
|
| |
| def | ReleaseContext (context) |
| | 用于释放加密和解密上下文的回调函数。 更多...
|
| |
| def | StartDecryptor (context, obj_num, gen_num) |
| | 用于开始解密的回调函数。 更多...
|
| |
| def | UseStandardCryptoMethod (context) |
| | 用于检查是否使用标准加密方法或自定义加密方法的回调函数。 更多...
|
| |
| def | Release () |
| | 用于释放当前回调对象自身的回调函数。 更多...
|
| |
此类表示自定义解密和加密的回调对象。如果用户想要使用 自定义安全回调,用户应该继承此回调类并实现纯虚函数 (作为回调函数),然后通过函数 FoxitPDFSDKPython2.Library.RegisterSecurityCallback 并使用任何自定义过滤器名称(遵循PDF名称约定)向 Foxit PDF SDK 注册自定义安全回调对象。 函数 FoxitPDFSDKPython2.Library.UnregisterSecurityCallback 可以用来注销具有 注册过滤器名称的安全回调对象。
◆ CreateContext()
| def FoxitPDFSDKPython2.CustomSecurityCallback.CreateContext |
( |
|
filter, |
|
|
|
sub_filter, |
|
|
|
encrypt_info |
|
) |
| |
用于创建加密和解密上下文的回调函数。
- 参数
-
| [in] | filter | 自定义安全回调对象的过滤器名称。 |
| [in] | sub_filter | 指定加密字典内容语法的子过滤器名称。 |
| [in] | encrypt_info | PDF文档的加密信息。 |
- 注解
- 用户应该实现此回调函数。
- 返回
- 加密上下文。
◆ DecryptData()
| def FoxitPDFSDKPython2.CustomSecurityCallback.DecryptData |
( |
|
decryptor, |
|
|
|
encrypted_data, |
|
|
|
encrypted_data_len |
|
) |
| |
用于解密加密数据的回调函数。
- 参数
-
- 注解
- 用户应该实现此回调函数。
- 返回
- 解密的数据内容。
◆ EncryptData()
| def FoxitPDFSDKPython2.CustomSecurityCallback.EncryptData |
( |
|
context, |
|
|
|
obj_num, |
|
|
|
gen_num, |
|
|
|
src_data, |
|
|
|
src_data_len, |
|
|
|
out_dst_buffer, |
|
|
|
out_dst_buffer_len |
|
) |
| |
用于获取加密数据的回调函数。
- 参数
-
- 注解
- 用户应该实现此回调函数。
- 返回
- true 表示成功,false 表示失败。
◆ FinishDecryptor()
| def FoxitPDFSDKPython2.CustomSecurityCallback.FinishDecryptor |
( |
|
decryptor | ) |
|
用于完成解密的回调函数。
- 参数
-
- 注解
- 用户应该实现此回调函数。
- 返回
- 解密的数据内容。
◆ GetCipher()
| def FoxitPDFSDKPython2.CustomSecurityCallback.GetCipher |
( |
|
context | ) |
|
◆ GetDecryptedSize()
| def FoxitPDFSDKPython2.CustomSecurityCallback.GetDecryptedSize |
( |
|
context, |
|
|
|
src_data_size |
|
) |
| |
用于获取估计的解密数据大小的回调函数。
- 参数
-
- 注解
- 用户应该实现此回调函数。
- 返回
- 估计的解密数据大小。
◆ GetEncryptedSize()
| def FoxitPDFSDKPython2.CustomSecurityCallback.GetEncryptedSize |
( |
|
context, |
|
|
|
obj_num, |
|
|
|
gen_num, |
|
|
|
src_data, |
|
|
|
src_data_len |
|
) |
| |
用于获取估计的加密大小的回调函数。
- 参数
-
- 注解
- 用户应该实现此回调函数。
- 返回
- 估计的加密大小。
◆ GetEncryptKey()
| def FoxitPDFSDKPython2.CustomSecurityCallback.GetEncryptKey |
( |
|
context | ) |
|
用于获取加密密钥的回调函数。
- 参数
-
- 注解
- 用户应该实现此回调函数。
- 返回
- 加密密钥。
◆ GetSecurityType()
| def FoxitPDFSDKPython2.CustomSecurityCallback.GetSecurityType |
( |
| ) |
|
◆ GetUserPermissions()
| def FoxitPDFSDKPython2.CustomSecurityCallback.GetUserPermissions |
( |
|
context, |
|
|
|
user_permission |
|
) |
| |
◆ IsOwner()
| def FoxitPDFSDKPython2.CustomSecurityCallback.IsOwner |
( |
|
context | ) |
|
用于检查当前用户是否是PDF文档所有者的回调函数。
- 参数
-
- 注解
- 用户应该实现此回调函数。
- 返回
- true 表示当前用户是所有者,false 表示当前用户不是所有者。
◆ ReleaseContext()
| def FoxitPDFSDKPython2.CustomSecurityCallback.ReleaseContext |
( |
|
context | ) |
|
用于释放加密和解密上下文的回调函数。
- 参数
-
- 注解
- 用户应该实现此回调函数。
- 返回
- true 表示成功,false 表示失败。
◆ StartDecryptor()
| def FoxitPDFSDKPython2.CustomSecurityCallback.StartDecryptor |
( |
|
context, |
|
|
|
obj_num, |
|
|
|
gen_num |
|
) |
| |
用于开始解密的回调函数。
- 参数
-
- 注解
- 用户应该实现此回调函数。
- 返回
- 用户实现和创建的解密器。
◆ UseStandardCryptoMethod()
| def FoxitPDFSDKPython2.CustomSecurityCallback.UseStandardCryptoMethod |
( |
|
context | ) |
|
用于检查是否使用标准加密方法或自定义加密方法的回调函数。
- 参数
-
- 返回
<ul>
<li>
<b>true</b> 表示使用标准加密方法。在这种情况下,回调函数 @link FoxitPDFSDKPython2::CustomSecurityCallback::GetDecryptedSize
FoxitPDFSDKPython2.CustomSecurityCallback.GetDecryptedSize @endlink、@link FoxitPDFSDKPython2::CustomSecurityCallback::StartDecryptor
FoxitPDFSDKPython2.CustomSecurityCallback.StartDecryptor @endlink、 @link FoxitPDFSDKPython2::CustomSecurityCallback::DecryptData
FoxitPDFSDKPython2.CustomSecurityCallback.DecryptData @endlink、@link FoxitPDFSDKPython2::CustomSecurityCallback::FinishDecryptor
FoxitPDFSDKPython2.CustomSecurityCallback.FinishDecryptor @endlink、 @link FoxitPDFSDKPython2::CustomSecurityCallback::GetEncryptedSize
FoxitPDFSDKPython2.CustomSecurityCallback.GetEncryptedSize @endlink 和 @link FoxitPDFSDKPython2::CustomSecurityCallback::EncryptData
FoxitPDFSDKPython2.CustomSecurityCallback.EncryptData @endlink 将无用, 用户可以为它们使用空实现。
</li>
<li>
<b>false</b> 表示使用自定义加密方法。在这种情况下,请确保上述提到的回调函数都已实现。
</li>
</ul>